package com.bw.module_house.adapter

import android.widget.ImageView
import com.bw.lib_image.GlideImageLoader
import com.bw.module_house.R
import com.bw.module_house.model.HouseEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
/**
 * 智慧园区-03-房源信息V1.1-史建军-20250515
 */
class TabAdapter :BaseQuickAdapter<HouseEntity,BaseViewHolder>(R.layout.item_renting) {
    override fun convert(holder: BaseViewHolder, item: HouseEntity) {
      val icon=  holder.getView<ImageView>(R.id.icon_name)
       GlideImageLoader.loadResImage(holder.getView(R.id.icon_name),R.drawable.img_name,holder.getView(R.id.icon_name))
        holder.setText(R.id.tv_name,item.enterpriseName)
        holder.setText(R.id.tv_detail,item.regionName)

    }


}